﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WebApplication1.Core.Domain.Entities {

    [Table("shequ")]
    public class SheQu {
        [Key]
        [Column("shequid")]
        public ushort SheQuID { get; set; }

        [Required(ErrorMessage = "社区名称不能为空")]
        [Column("mingcheng")]
        [StringLength(20,ErrorMessage ="字符不得超过20个")]
        public string MingCheng { get; set; }

        [Column("dianhua")]
        [StringLength(20, ErrorMessage = "字符不得超过20个")]
        public string? DianHua { get; set; }


        [Column("shuji")]
        [StringLength(10, ErrorMessage = "字符不得超过10个")]
        public string? ShuJi { get; set; }

        [Column("shujidianhua")]
        [StringLength(20, ErrorMessage = "字符不得超过20个")]
        public string? ShuJiDianHua { get; set; }

    }
}
